"""
@Filename: /run.py
@Author: yoko
@Time: 2023/3/28 18:22
@Describe: ...
"""
import os
import time

import pytest

if __name__ == '__main__':
    pytest.main()
    time.sleep(3)#等待临时json报告生成完成
    os.system("allure generate ./temps -o ./reports --clean")#执行系统命令，通过临时json文件报告构建allure报告，输出到reports目录，每一次执行之前将reports目录清空掉